package org.sunflower.mongo.domain;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Document("user")
@Data
public class User {
    @Id
    private Long userId;
    @Field
    private String username;
    @Field
    private String address;
}
